home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!dindia
- From: dindia@netcom.com (John Paul D'India)
- Subject: [Q] Watcom (DOS4GW) free memory
- Message-ID: <dindiaDoDLtp.IqB@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- X-Newsreader: TIN [version 1.2 PL1]
- Date: Sat, 16 Mar 1996 19:51:24 GMT
- Sender: dindia@netcom22.netcom.com
-
-
- I'm in the process of switching from Borland Pascal to Watcom C++ 10.0a.
- I am trying to figure out how much free memory my program can access under
- DOS4GW. I opened up the "programmer's guide" help, found a nice section
- titled "determining free memory under DOS4GW", and when I ran the little
- example program, it gave me a whole big long list of information (luckily
- at the top was largest available block - which looked close if not exact).
- So, I popped in a malloc, displayed the information, freed the memory, and
- displayed the information again. The free memory didn't go back up..? I
- have no idea how Watcom manages memory, so if someone could give myself
- and other Watcom newbies in this group the low-down, it would be
- appreciated. I'd also like to know if I allocate memory, what the
- minimum size is (I think it's 4K, which stinks)? Has anyone written a
- memory library that allocates all the memory and then manages things
- itself (is it smart to do this..?)? Is there a better newsgroup to ask
- these questions in (or maybe a pointer to where I can find this stuff in
- the manual)?
-
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- John Paul D'India - D'India Software - Game Developer (programmer)
- dindia@netcom.com http://www.ax.com/dindia
- "The greatest of all mistakes is to believe in individualism
- in a society where one is dependant upon others."
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-